<%@ Control Language="C#" Inherits="System.Web.Core.ValuedEditor, System.Web.Core" AutoEventWireup="true" %>
<%@ Import Namespace="System.Web.Core" %>

<script runat="server" type="text/C#">
    private string GetHtmlEditorUrl()
    {
        return Globals.ApplicationPath + string.Format("/utility/HtmlEditor/index.html?HiddenID={0}&ID={1}", this.nohtmlHidden.ClientID, ((HtmlEditor)this.editor).ClientID);
    }
    private string GetHtmlEditorIFrameStyle()
    {
        return string.Format("width: {0}; height: {1}", this.editor.Width, this.editor.Height);
    }
</script>

<asp:HiddenField id="nohtmlHidden" runat="server" />
<nwap:HtmlEditor runat="server" style="display:none;" id="editor" />
<iframe id="htmleditor_iframe" name="Editor" src="<%= GetHtmlEditorUrl() %>"
    frameborder="0" marginheight="0" marginwidth="0" scrolling="No" style="<%= GetHtmlEditorIFrameStyle() %>">
</iframe>
